package com.zttek.photosShareProject.modules.service.share;


import com.baomidou.mybatisplus.plugins.Page;
import com.zttek.photosShareProject.common.myException.DBException;
import com.zttek.photosShareProject.modules.model.Examine;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Y
 * Date: 2017-08-18
 * Time: 14:48
 */
public interface IExamineService {

    int SHARE = 0;
    int COMMENT = 1;
    int ABUSE = 2;

    /**
     * 加入待审核分享
     * @param targetId *
     * @param date *
     */
    void queueShare(long targetId, Date date) throws Exception;

    /**
     * 加入待审核举报
     * @param targetId *
     * @param date *
     */
    void queueAbuse(long targetId, Date date) throws Exception;

    /**
     * 查询审核内容
     * @param page *
     * @return *
     */
    Page<Examine> selectExamine(Page<Examine> page) throws Exception;

    /**
     * 处理审核
     * @param examineId *
     * @param adminId *
     * @param isPassed *
     */
    void handle(Long examineId, Integer adminId, boolean isPassed) throws Exception;
}
